import { $get, $post } from '@/api/request'
const alarmUrl = '/alarm'
const eqptUrl = '/eqpt'

// 空间展示点击左侧节点获取设备信息
export function queryDeviceForTheRoom (data) {
  return $post({
    url: `${alarmUrl}/api/dmpDeviceStatistics/queryDeviceForTheRoom`,
    data
  })
}

// 空间展示 - 获取一级目录
export function getMenus (typeFlag) {
  return $post({
    url: `${alarmUrl}/api/dmpDeviceStatistics/queryDeviceOneCatalogList/${typeFlag}`
  })
}

// 空间展示 - 获取楼宇树结构
export function getFloorTreeList (data) {
  return $get({
    url: `${eqptUrl}/scene/floor/getFloorTreeList`,
    data
  })
}
